#ifndef PLAYER_H
#define PLAYER_H
#include <SFML/Graphics.hpp>

class Unit ;
class Player
{
    public:
        Player();
        Player(short team, short color = 0, std::string name = "Someone");
        virtual ~Player();
        int getTeam() const { return m_team; };
        void setTeam(int team) { m_team = team; };

        int getId() const {return m_id ;};
        void setId(short newid) { m_id = newid;};

        std::string getName() const {return m_name ;};
        void setName(std::string name) { m_name = name;};

        bool isPlaying() const { return m_isPlaying ;};
        void isPlaying(bool val) { m_isPlaying = val ;};

        unsigned short getColor() const {return m_color ;};

        sf::Color getOutsideColor() const ;
        sf::Color getInsideColor() const ;
        void setColor(int newcolor) { m_color = newcolor;};
    protected:
    private:
        bool m_isPlaying ;
        short m_id ;
        int m_team ;
        Unit * m_hero ;
        unsigned short m_color ;
        std::string m_name ;
};

#endif // PLAYER_H
